﻿using System;

namespace CommonUtils.Logging.LoggingProviders
{
    /// <summary>
    /// Interface for logging providers
    /// </summary>
    public interface ILoggingProvider
    {
        /// <summary>
        /// Log message
        /// </summary>
        void LogMessage(DateTime dateTime, MessageType messageType, string message);

        /// <summary>
        /// Initialization of logging provider
        /// </summary>
        void InitializeLog();

        /// <summary>
        /// Initialization of logging provider
        /// </summary>
        void FinalizeLog();

        /// <summary>
        /// Provider name
        /// </summary>
        string Name
        {
            get;
        }
    }
}